#include<iostream>
using namespace std;
class Animal{
    public:
        string name;
        void eat() { cout << "Animal eat..." << endl;return;};
        void sleep(){ cout << "Animal sleep..." << endl;return;};;
};
class Dog : public Animal{
    public:
        int feet = 4;
};
class Age{
    public:
        int age;
        Age(){age = 0;};
        ~Age() { cout << "~Age" << endl; };
        void outAge() { cout << "Age:" << age << endl;return;}
};
class Cat : public Dog , public Age{
};
int main(){
    Cat cat;
    cat.eat();
    cat.outAge();
    system("pause");
    return 1;
};